<#include "/common/common.ftl" encoding="UTF-8">
<script  src="${staticUrl}/js/table.js" type="text/javascript"></script>
<#assign action = "leave-word-web">
<SCRIPT language="JavaScript">
//查看留言信息
	function switchStatus(id) {
		var el = document.getElementById(id);
		el.style.display = el.style.display == "none" ? "" : "none";
	}
	
</SCRIPT>
<style type="text/css">
	body{
		font-size:24px;
	}
	.font_size{
	padding-left:5px;
	font-size:16px;
	}
	.font_size a{
	font-size:16px;
	}
</style>
</head>
<body scroll="no">
<#-- 根据viaQuery标志判断本页面是否是由通用查询产生 -->	
	<form id="mainForm" action="${request.contextPath}/${action}!list.action" method="post">
		<table width="576" height='95%' border="0" cellpadding="0" cellspacing="0">
		  <tr>
			<td>
				<div class="content">
      <table width="100%" border="0" cellpadding="0" cellspacing="2">
        <tr> 
          <td colspan="3" align="left" valign="top"> 
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="27%" height="8" align="center" class="tdtilte4">
                <a href="${action}!add.action">
                <img src="${staticUrl}/img/shzhxinxiang.gif" width="138" height="36" border="0"></a>
                </td>
                <td width="73%" align="center" background="${staticUrl}/img/sz_t2.gif" class="tdtilte4">&nbsp;</td>
              </tr>
              <tr> 
                <td height="1" colspan="2" align="center" background="${staticUrl}/img/news_line.gif"></td>
              </tr>
              <tr> 
                <td height="36" colspan="2" align="center" style="font-size:24px;">旅客留言</td>
              </tr>
              <tr align="center"> 
                <td colspan="2" valign="top"> 
                  <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666" >
                    <TR align="center" bgcolor="#A3D2FE"> 
                      <TD width="14%" colspan="2"><B class="font_size">编号</B></TD>
                      <TD width="40%"><B class="font_size">标 题</B></TD>
                      <TD width="13%"><B class="font_size">收信日期</B></TD>
                      <TD width="13%"><B class="font_size">回复日期</B></TD>
                      <TD width="10%"><B class="font_size">状态</B></TD>
                    </TR>
					<#assign i=0>
		       		<#list page.result as domain>
					<#assign i=i+1>
                    <tr class="font_size"> 
                      <td bgcolor="#FFFFFF" align="center"><a href="javascript:switchStatus('item${i}')"><img src="${staticUrl}/img/he1.gif" width="11" height="11" border="0"></a></td>
                      <td bgcolor="#FFFFFF" class="font_size"><a href="javascript:switchStatus('item${i}')" class="font_size">${((domain.id)?if_exists)?html}</a></td>
                      <td bgcolor="#FFFFFF" class="font_size"><a href="javascript:switchStatus('item${i}')">${((domain.title)?if_exists)?html}</a></td>
                      <td bgcolor="#FFFFFF" align="center" class="font_size"><#if domain.createTime?exists>${((domain.createTime))?string('MM-dd')}</#if></td>
                      <td bgcolor="#FFFFFF" align="center" class="font_size"><#if domain.replayTime?exists>${((domain.replayTime))?string('MM-dd')}</#if></td>
					  <td bgcolor="#FFFFFF" align="center" class="font_size">
				<#if domain.status?exists && domain.status==0>
				未处理
				<#else>
				已回复
				</#if>

					  </td>
                    </tr>
                    <tr align="right" valign="top" style="display: none;" id="item${i}" value="${((domain.id)?if_exists)?html}" isDetail='0'> 
                      <td colspan="6" bgcolor="#FFFFFF"> 
                      	<TABLE width="100%" border=0 align="center" cellPadding=5 cellSpacing=1 bgcolor="#DCDAE7" class=table>
                          <TBODY>
                            <TR bgColor=#ffffff> 
                              <TD width="80" class="font_size">邮件内容</TD>
                              <TD class=tint vAlign=top align="center"><SPAN style="width: 90%; text-align: left;">${((domain.description)?if_exists)?html}</SPAN></TD>
                            </TR>
                            <TR bgColor=#FFF4E6> 
                              <TD width="80"><FONT color=#ff6600 class="font_size">处理结果</FONT></TD>
                              <TD class=tint align="center">
	                              <SPAN style="width: 90%; text-align: left;" class="font_size">
								  <#if domain.status==0>
								  处理中
								  <#else>
								  办毕
								  </#if>                              
								  </SPAN>
							  </TD>
                            </TR>
                            <TR bgColor=#F9F9FD> 
                              <TD width="80"><FONT color=#ff6600 class="font_size">回复内容</FONT></TD>
                              <TD vAlign=top class=tint align="center">
                              <SPAN style="width: 90%; text-align: left;" class="font_size">${((domain.resolvent)?if_exists)?html}</SPAN>
                              </TD>
                            </TR>
                          </TBODY>
                        </TABLE></td>
                    </tr>
              		</#list>
      			</table>
      		</td>
      		</tr>
      	</table>
				<#-- 分页用的参数 -->
  				<#include "/common/page/pageButtom.ftl" encoding="UTF-8">
				</div>
			</td> 
		  </tr>
		</table>
</form>
</body>
</HTML>